package org.csmzxy.class2333;

public class Person {
    String name;
    int age;
    public void eat(){
        System.out.println("吃饭");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
}
class Student extends Person{
    public void study(){
        System.out.println("学习");
    }
}
class Teacher extends Person{
    int salary;
    public void teach(){
        System.out.println("教学");
    }
}
